# -*- coding: UTF-8 -*-
"""
@Filename:exerc1.py
@author:Cora
@time:2025-04-25
"""

class Employee:
    count = 0  #类变量，用于记录实例化的对象数量

    def __init__(self):
        Employee.count += 1  #每次实例化时，类变量加 1

employee1 = Employee()
employee2 = Employee()
employee3 = Employee()

print("员工类总共实例化了", Employee.count, "个对象")